<?php
/**
 * Created by PhpStorm.
 * User: 671643387
 * Date: 2016/8/6
 * Time: 9:22
 */
namespace Admin\Controller;
use Think\Controller;

class AdminBasedController extends Controller {
    public function _initialize() {
        if (!isset($_SESSION['ADMIN_USER'])) {
            $this->error("您还没有登录！",U("Admin/login"));
        }
    }
}